package com.example.flowabledemo.delegate;

import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author XL
 * @version 0.1
 * @date 2021/12/11 16:42
 */
public class DueTimeDelegate implements JavaDelegate {

    Logger logger = LoggerFactory.getLogger(DueTimeDelegate.class);

    @Override
    public void execute(DelegateExecution execution) {
        logger.info("==========  delegate =======");
        logger.info("name: {}, instanceId: {}", execution.getEventName(), execution.getProcessInstanceId());
        logger.info("==========  delegate =======");
    }
}
